home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / C / SUCursor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-19  |  6.6 KB  |  209 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:C:SUCursor.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emith.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Constants
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODStorageUnitCursor_h
  18. #define SOM_ODStorageUnitCursor_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODStorageUnitCursor
  34. #define ODStorageUnitCursor SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef ODExtension
  42.     #define ODExtension SOMObject
  43. #endif /* ODExtension */
  44. #ifndef ODSession
  45.     #define ODSession SOMObject
  46. #endif /* ODSession */
  47. #ifndef ODStorageUnitRefIterator
  48.     #define ODStorageUnitRefIterator SOMObject
  49. #endif /* ODStorageUnitRefIterator */
  50. #ifndef ODPart
  51.     #define ODPart SOMObject
  52. #endif /* ODPart */
  53. #ifndef ODStorageUnitView
  54.     #define ODStorageUnitView SOMObject
  55. #endif /* ODStorageUnitView */
  56. #ifndef ODDraft
  57.     #define ODDraft SOMObject
  58. #endif /* ODDraft */
  59.  
  60. /*
  61.  * End of user-defined types.
  62.  */
  63.  
  64. #define ODStorageUnitCursor_MajorVersion 0
  65. #define ODStorageUnitCursor_MinorVersion 0
  66.  
  67. /*
  68.  * External name shortening if required
  69.  */
  70. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  71. #define ODStorageUnitCursorNewClass c
  72. #define ODStorageUnitCursorClassData d
  73. #define ODStorageUnitCursorCClassData x
  74. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  75. /*--------------Migration------------*/
  76. #define ODStorageUnitCursor_classObj ODStorageUnitCursorClassData.classObject
  77. #define _ODStorageUnitCursor ODStorageUnitCursor_classObj
  78.  
  79. /*
  80.  * Declare the class creation procedure
  81.  */
  82.  
  83. #if applec ^ PRAGMA_LIB_EXPORT
  84. #pragma lib_export on
  85. #endif
  86.  
  87. SOMEXTERN SOMClass * SOMLINK ODStorageUnitCursorNewClass(integer4 somtmajorVersion,
  88.         integer4 somtminorVersion);
  89.  
  90. /*
  91.  * Declare the class data structure
  92.  */
  93. SOMEXTERN struct ODStorageUnitCursorClassDataStructure {
  94.     SOMAny *classObject;
  95.     somMToken InitStorageUnitCursor;
  96.     somMToken GetCursor;
  97. }
  98. #ifdef SOM_NO_DATA_EXPORTS
  99.     * ODStorageUnitCursorGetClassData ( void );
  100. #   undef ODStorageUnitCursorClassData
  101. #   define ODStorageUnitCursorClassData (*ODStorageUnitCursorGetClassData())
  102. #else
  103.       ODStorageUnitCursorClassData;
  104. #endif /* SOM_NO_DATA_EXPORTS */
  105.  
  106. #if applec ^ PRAGMA_LIB_EXPORT
  107. #pragma lib_export off
  108. #endif
  109.  
  110.  
  111. /*
  112.  * Declare the C specific class data structure
  113.  */
  114. SOMEXTERN struct ODStorageUnitCursorCClassDataStructure {
  115.     somMethodTabs parentMtab;
  116.     somDToken instanceDataToken;
  117. } ODStorageUnitCursorCClassData;
  118.  
  119. /*
  120.  * New and Renew macros for ODStorageUnitCursor
  121.  */
  122. #define ODStorageUnitCursorNew() \
  123.     ( ( ! (ODStorageUnitCursorClassData.classObject) && \
  124.         (ODStorageUnitCursorNewClass(ODStorageUnitCursor_MajorVersion, ODStorageUnitCursor_MinorVersion)) ), \
  125.       (_somNew(ODStorageUnitCursorClassData.classObject)) )
  126. #define ODStorageUnitCursorRenew(buf) \
  127.     ( _somRenew(ODStorageUnitCursorClassData.classObject, buf) )
  128.  
  129. /*
  130.  * Override method: somInit
  131.  */
  132. #define ODStorageUnitCursor_somInit(somSelf) \
  133.     SOMObject_somInit(somSelf)
  134.  
  135. /*
  136.  * Override method: somUninit
  137.  */
  138. #define ODStorageUnitCursor_somUninit(somSelf) \
  139.     SOMObject_somUninit(somSelf)
  140.  
  141. /*
  142.  * New Method: InitStorageUnitCursor
  143.  */
  144. typedef void   (SOMLINK *somTD_ODStorageUnitCursor_InitStorageUnitCursor)(ODStorageUnitCursor *somSelf, Environment *ev,
  145.         ODPropertyName propertyName,
  146.         ODValueType valueType,
  147.         ODValueIndex valueIndex);
  148. #define somMD_ODStorageUnitCursor_InitStorageUnitCursor "::ODStorageUnitCursor::InitStorageUnitCursor"
  149. #define ODStorageUnitCursor_InitStorageUnitCursor(somSelf,ev,propertyName,valueType,valueIndex) \
  150.     (SOM_Resolve(somSelf, ODStorageUnitCursor, InitStorageUnitCursor) \
  151.     (somSelf,ev,propertyName,valueType,valueIndex))
  152. #ifndef SOMGD_InitStorageUnitCursor
  153.     #if (defined(_InitStorageUnitCursor) || defined(__InitStorageUnitCursor))
  154.         #undef _InitStorageUnitCursor
  155.         #undef __InitStorageUnitCursor
  156.         #define SOMGD_InitStorageUnitCursor 1
  157.     #else
  158.         #define _InitStorageUnitCursor ODStorageUnitCursor_InitStorageUnitCursor
  159.     #endif /* _InitStorageUnitCursor */
  160. #endif /* SOMGD_InitStorageUnitCursor */
  161.  
  162. /*
  163.  * New Method: GetCursor
  164.  */
  165. typedef void   (SOMLINK *somTD_ODStorageUnitCursor_GetCursor)(ODStorageUnitCursor *somSelf, Environment *ev,
  166.         ODPropertyName* propertyName,
  167.         ODValueType* valueType,
  168.         ODValueIndex* valueIndex);
  169. #define somMD_ODStorageUnitCursor_GetCursor "::ODStorageUnitCursor::GetCursor"
  170. #define ODStorageUnitCursor_GetCursor(somSelf,ev,propertyName,valueType,valueIndex) \
  171.     (SOM_Resolve(somSelf, ODStorageUnitCursor, GetCursor) \
  172.     (somSelf,ev,propertyName,valueType,valueIndex))
  173. #ifndef SOMGD_GetCursor
  174.     #if (defined(_GetCursor) || defined(__GetCursor))
  175.         #undef _GetCursor
  176.         #undef __GetCursor
  177.         #define SOMGD_GetCursor 1
  178.     #else
  179.         #define _GetCursor ODStorageUnitCursor_GetCursor
  180.     #endif /* _GetCursor */
  181. #endif /* SOMGD_GetCursor */
  182. #ifndef SOM_DONT_USE_INHERITED_MACROS
  183. #define ODStorageUnitCursor_InitObject ODObject_InitObject
  184. #define ODStorageUnitCursor_IsInitialized ODObject_IsInitialized
  185. #define ODStorageUnitCursor_HasExtension ODObject_HasExtension
  186. #define ODStorageUnitCursor_GetExtension ODObject_GetExtension
  187. #define ODStorageUnitCursor_ReleaseExtension ODObject_ReleaseExtension
  188. #define ODStorageUnitCursor_Purge ODObject_Purge
  189. #define ODStorageUnitCursor_SubClassResponsibility ODObject_SubClassResponsibility
  190. #define ODStorageUnitCursor_somFree SOMObject_somFree
  191. #define ODStorageUnitCursor_somGetClass SOMObject_somGetClass
  192. #define ODStorageUnitCursor_somGetClassName SOMObject_somGetClassName
  193. #define ODStorageUnitCursor_somGetSize SOMObject_somGetSize
  194. #define ODStorageUnitCursor_somIsA SOMObject_somIsA
  195. #define ODStorageUnitCursor_somIsInstanceOf SOMObject_somIsInstanceOf
  196. #define ODStorageUnitCursor_somRespondsTo SOMObject_somRespondsTo
  197. #define ODStorageUnitCursor_somDispatchV SOMObject_somDispatchV
  198. #define ODStorageUnitCursor_somDispatchL SOMObject_somDispatchL
  199. #define ODStorageUnitCursor_somDispatchA SOMObject_somDispatchA
  200. #define ODStorageUnitCursor_somDispatchD SOMObject_somDispatchD
  201. #define ODStorageUnitCursor_somDispatch SOMObject_somDispatch
  202. #define ODStorageUnitCursor_somClassDispatch SOMObject_somClassDispatch
  203. #define ODStorageUnitCursor_somPrintSelf SOMObject_somPrintSelf
  204. #define ODStorageUnitCursor_somDumpSelf SOMObject_somDumpSelf
  205. #define ODStorageUnitCursor_somDumpSelfInt SOMObject_somDumpSelfInt
  206. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  207.  
  208. #endif       /* SOM_ODStorageUnitCursor_h */
  209.